package com.itheima.day01;

import java.util.Random;

public class Demo06 {

    public static void main(String[] args) {
        int[] arr = new int[30];
        Random ra = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = ra.nextInt(99) + 1;
        }
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 5) {
                sum += arr[i];
            }
        }
        System.out.println(sum);


    }
}
